#include <iostream>
#include "haptics.h"
using namespace std;

int main()
{
	// Minimalistic app that shows how to create a haptics class and what the values Init returns mean
	// See docs or header for functionalities
	CHaptics HapticsDevice;
	switch(HapticsDevice.Init())
	{
		case -1: cout << "The device is not calibrated yet! Please pull yadda you know." << endl; break;
		case 1:  cout << "Device initialized succesfully, and even already calibrated! Wowzerz!" << endl; break;
		case 2:  cout << "hdlInitNamedDevice() has failed." << endl; break;
		case 3:  cout << "Failed to open device, for whatever reason..." << endl; break;
		case 4:  cout << "hdlStart() has failed." << endl; break;
		case 5:  cout << "hdlCreateServoOp() has failed" << endl; break;
		case 6:  cout << "hdlMakeCurrent() has failed" << endl; break;
		case 7:  cout << "hdlDeviceWorkspace() has failed" << endl; break;
		default: cout << "No idea what the christ just happened." << endl;
	}

	cin.get();

	return 0;
}